/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author nawma77
 */
public class Person {
    private String c_firstName,c_lastName,c_adress, c_telefon;
    private SSN c_ssnObjekt;

    public Person(String ssn)
    {
    c_ssnObjekt = new SSN(ssn);
    }

    public String getSSN()
    {
    return c_ssnObjekt.toString();
    }

    public boolean isOK()
    {
        return c_ssnObjekt.isOK();
    }

    public boolean isMale()
    {
        return c_ssnObjekt.isMale();
    }

    public boolean isFemale()
    {
        return c_ssnObjekt.isFemale();
    }

    public boolean setFirstName(String ss)
	{
	if(ss != null && (!ss.equals("")))
      {
      c_firstName = ss;
      return true;
      }
  	else
      {
      c_firstName = "";
      return false;
      }
	}

	public String getFirstName()
	{
	return c_firstName;
	}

	public boolean setLastName(String ss)
	{
	if(ss != null && (!ss.equals("")))
	{
        c_lastName = ss;
	return true;
	}
  	else
      {
      c_lastName = "";
      return false;
      }
	}

	public String getLastName()
	{
	return c_lastName;
    }

	public boolean setAddress(String ss)
	{
	if(ss != null && (!ss.equals("")))
	{
    c_adress = ss;
	return true;
	}
  	else
    {
    c_adress = "";
    return false;
    }

	}

	public String getAddress()
	{
	return c_adress;
	}

 	public boolean setPhone(String ss)
	{
	if(ss != null && (!ss.equals("")))
	{
    c_telefon = ss;
	return true;
	}
  	else
    {
    c_telefon = "";
  	return false;
	}
    }

	public String getPhone()
	{
	return c_telefon;
	}

    public String toString()
    {
     return c_firstName + " " + c_lastName + " "+c_ssnObjekt.toString();
    }

}
